Inscoper::RoiCrop¶
RoiCrop class defines a Region Of Interest for cropping. More...
#include <RoiCrop.h>
Public Functions¶
| Name | |
|---|---|
| RoiCrop() Default constructor. |
|
| virtual | ~RoiCrop() =default Virtual destructor. |
| int | getHeight() const Get height. |
| void | setHeight(int height) Set height. |
| int | getWidth() const Get width. |
| void | setWidth(int width) Set width. |
| int | getX() const Get X coordinate. |
| void | setX(int x) Set X coordinate. |
| int | getY() const Get Y coordinate. |
| void | setY(int y) Set Y coordinate. |
Detailed Description¶
RoiCrop class defines a Region Of Interest for cropping.
Specifies a rectangular region defined by its top-left coordinates (x, y) and its dimensions (width, height) to be used for image cropping operations.
Public Functions Documentation¶
function RoiCrop¶
Default constructor.
Initializes a RoiCrop with all values set to 0.
function ~RoiCrop¶
Virtual destructor.
function getHeight¶
Get height.
Return: The height value
Retrieves the height of the crop region.
function setHeight¶
Set height.
Parameters:
- height : The new height value
Sets the height of the crop region.
function getWidth¶
Get width.
Return: The width value
Retrieves the width of the crop region.
function setWidth¶
Set width.
Parameters:
- width : The new width value
Sets the width of the crop region.
function getX¶
Get X coordinate.
Return: The X coordinate
Retrieves the X coordinate (left) of the crop region.
function setX¶
Set X coordinate.
Parameters:
- x : The new X coordinate
Sets the X coordinate (left) of the crop region.
function getY¶
Get Y coordinate.
Return: The Y coordinate
Retrieves the Y coordinate (top) of the crop region.
function setY¶
Set Y coordinate.
Parameters:
- y : The new Y coordinate
Sets the Y coordinate (top) of the crop region.
Updated on 2026-04-02 at 10:55:36 +0200